import { del, get, post, put } from "../utils/request";
// 商品列表
export const getProductsApi = () => get("/product/findAll");
// 修改商品
export const getProductsEditsApi = (data) => put("/product", data);
// 删除商品
export const delProductsApi = (data) => del(`/product/${data}`);
// 增加商品
export const addProductsApi = (data) => post("/product", data);

// 文件上传
export const updata = (data) => post("/product/upload", data);
